package com.fullertontech.framework.fileupload.fastdfs;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.fullertontech.framework.config.ConfigClient;
import com.fullertontech.framework.fileupload.FileUploadClientGroup;

@Configuration
public class FastDfsConfig {
  @Autowired
  private ConfigClient configClient;
  @Bean("fastdfsFileUploadClientGroup")
  public FileUploadClientGroup fastDfsClient() {
    FileUploadClientGroup fileUploadClient=new FastDfsClient(configClient);
    return fileUploadClient;
  }
}
